﻿@page
@model RazorPageSample.Pages.Blogs.IndexModel
@{
    ViewData["Title"] = "Index";
}
<br />
<button type="button" class="btn btn-default">创建</button>
<hr />
<table class="table table-striped table-hover">
    <thead>
        <tr>
            <th>ID</th>
            <th>Name</th>
            <th>Operations</th>
        </tr>
    </thead>
    <tbody>
        @foreach (var item in Model.Blogs)
        {
            <tr>
                <td>@item.Id</td>
                <td>@item.Name</td>
                <td><a asp-page="edit" class="btn btn-default" asp-route-id="@item.Id">编辑</a></td>
            </tr>
        }
    </tbody>
</table>

